home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / spfunc.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  1KB  |  33 lines

  1. #ifndef    _SPFUNC_H
  2. #define    _SPFUNC_H
  3.  
  4. #ifndef _SIZE_T_DEFINED
  5. #define _SIZE_T_DEFINED
  6.     typedef unsigned int size_t;
  7. #endif
  8. #ifndef    CONST
  9. #    define    CONST    const
  10. #endif
  11.  
  12. /*-----    "spfunc10.c"    --------------------------------------------*/
  13. #define    SP_FOPEN(_fn,_md)    ((_SPfopen)((_fn),(_md)))
  14. #define    SP_FCLOSE(_fp)        ((_SPfclose)((_fp)))
  15. extern    void    * ((*_SPfopen)(CONST char *,CONST char *)) ;
  16. extern    int          (*_SPfclose)(void *)                    ;
  17.  
  18. /*-----    "spfunc11.c"    --------------------------------------------*/
  19. #define    SP_REMOVE(_fn)        ((_SPremove)((_fn)))
  20. extern    int        (*_SPremove)(CONST char *);
  21.  
  22. /*-----    "spfunc20.c"    --------------------------------------------*/
  23. #define    SP_MALLOC(_siz)        ((_SPmalloc)((_siz)))
  24. #define    SP_FREE(_ptr)        ((_SPfree)((_ptr)))
  25. extern    void    *((*_SPmalloc)(size_t))        ;
  26. extern    void     (*_SPfree)(void *)           ;
  27.  
  28. /*-----    "spfunc21.c"    --------------------------------------------*/
  29. #define    SP_CALLOC(_siz,_blk)    ((_SPcalloc)((_siz),(_blk)))
  30. extern    void    *((*_SPcalloc)(size_t,size_t)) ;
  31.  
  32. #endif
  33.